package com.beyond.market.commodity.service.impl;

import com.beyond.market.commodity.dao.CommodityMapper;
import com.beyond.market.commodity.service.CommodityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.sql.SQLException;

@Service
public class CommodityServiceImpl implements CommodityService {
    @Autowired
    private CommodityMapper commodityMapper;

    @Override
    public Integer update(Integer id, Integer num) throws SQLException {
        return commodityMapper.update(id,num);
    }
}
